package com.zjx.shop.member.feign;

import com.zjx.shop.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 郑家莽
 */
@FeignClient("shop-coupon")//告诉spring cloud这个接口是一个远程客户端，要调用coupon服务(nacos中找到)
public interface CouponFeignService {


    /**
     *
     * @return
     */
    @RequestMapping("/test/nacos")//远程服务的url,注意写全优惠券类上还有映射
    R nacos();


}
